import { defineStore } from "pinia";
import { ref } from "vue";
export interface IOderPlans {
  id: number | null,
  pa: number | null,
  pb: string,
  pc: string,
  pd: string,
  pe: number | string,
  realname: string,
}

export interface IOderPlans0 {
  id: number | null,
  ra: number | null,
  rb: string,
  rc: string,
  rd: string,
  re: number | string,
  realname: string,
}
export const useNewOrdersStore = defineStore("newOrders",
  () => {
    const xs = ref<boolean>(true);
    const orderPlans = ref<IOderPlans[]>([]);
    return {
      xs,
      orderPlans
    };
  },
  {
    persist: {
      storage: localStorage,
      key: 'orderPlans',
    },
  },
);

export const useNewOrdersStore0 = defineStore("newOrders0",
  () => {
    const xs = ref<boolean>(true);
    const orderPlans0 = ref<IOderPlans0[]>([]);
    return {
      xs,
      orderPlans0
    };
  },
  {
    persist: {
      storage: localStorage,
      key: 'orderPlans0',
    },
  },
);




